{% include "header.html" %}
<script language="javascript" type="text/javascript" src="/flot/jquery.flot.js"></script>
<script language="javascript" type="text/javascript" src="/flot/jquery.flot.stack.js"></script>
<script type="text/javascript" src="/scripts/course.js"></script>
<h1>{{ user.nickname()|e }}, you are in the course {{ course.name|e }}</h1> 
<br />
{% if course.teacher.uid == userEntity.uid %}
<!--Clarifications in this course-->
<div id="clarifications">
<h2 id="clarificationPageInfo">Clarifications in this course:</h2>
{% for clarification in clarifications|reverse %}	
	<br />
	<div class="entry" id="{{ clarification.key()|e }}">
	{{ clarification.name|e }}: {{ clarification.text|e }}&nbsp;- asked by {{ clarification.student.user.nickname()|e }}
	</div>
{% endfor %} 
</div>
<br />
{% endif %}
<!--displays the default questions-->
<div id="questions">
<script language="javascript" type="text/javascript" src="/flot/jquery.flot.js"></script>
<script language="javascript" type="text/javascript" src="/flot/jquery.flot.stack.js"></script>
<h2 id="questionPageInfo">Questions in this course:</h2>
{% for question in defaultQuestions|reverse %}	
	{% if question.active %}
		<br />
		<div class="entry"> 
		<span><a id="{{ question.key()|e }}" class="entryHeading" href="/category/{{ defaultCategoryID|e }}/question/{{ question.key()|e }}">
		{{ question.name|e }}</a>: {{ question.text|e }}</span>
		</div>
	{% endif %}
{% endfor %} 
</div>
<br />
<div id="categories">
<h2 id="categoryPageInfo"> Categories in this course: </h2>
<!--prints out the categories-->
{% for category in categories|reverse %}
	{% if category.name != "Default" %}
		<br />
		<div class="entry">		
		<span><a id="{{ category.key()|e }}"class="entryHeading" href="/category/{{ category.key()|e }}">
		{{ category.name|e }}</a>: {{ category.subtitle|e }}</span>
		</div>
	{% endif %}
{% endfor %}
</div>
<!--link back to home page-->
<br />

{% if course.teacher.uid == userEntity.uid %}
<h2 class="analyticsCourse"> Percent of Answers Correct: </h2>
<div class="entry analytics" id="responsePercentHolder" style="height:250px;"></div><br />
<h2 class="analyticsCourse"> Number of Answers: </h2>
<div class="entry analytics" id="responseNumberHolder" style="height:250px;"></div><br />
{% endif %}

<br />
<div class="backUp"> 
<span><a class="entryHeading" href="/">Back to Homepage</a></span>
</div>
<span id="storeCourse" title="{{ course.key()|e }}"></span>
<span id="storeCategory" title="{{ defaultCategoryID|e }}"></span>
{% include "footer.html" %}